וַיֹּ֤אמֶר נָתָן֙ אֶל־דָּוִ֔יד כֹּ֛ל אֲשֶׁ֥ר בִּֽלְבָבְךָ֖ עֲשֵׂ֑ה כִּ֥י הָאֱלֹהִ֖ים עִמָּֽךְ׃ (ס)
And Nathan said unto David: ‘Do all that is in thy heart; for God is with thee.’
Read halakhic rulings (Jewish law) on I Chronicles 17:2: and classical halakhic sources.